<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表格</title>
    <style>
        table{
            border: 3px double red;
            margin: 0;
        }
        tr>:first-child{
            text-align: center;
        }
        th,td{
            border-right: 1px dotted red;
            border-bottom: 1px dotted red;
            padding: 6px;
            margin: 0;
        }
        th{
            background-color: yellow;
        }
    </style>
</head>
<body>
<table cellspacing="0">
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>性别</th>
    </tr>
    <tr>
        <td>01</td>
        <td>张三</td>
        <td>男</td>
    </tr>
    <tr>
        <td>02</td>
        <td>杨柳依依</td>
        <td>女</td>
    </tr>

</table>
</body>
</html>